import request from '@/utils/request'

/**
 * @description 授权登录
 * @param {*} data
 */
export function wxLogin(data) {
    return request({
        url: '/wxApi/appUserLogin',
        method: 'post',
        params: {},
        data
    })
}

export function getUserInfo(data) {
    return request({
        url: '/getInfo',
        method: 'get',
        params: {},
        data
    })
}

export function getVolunteerInfo(data) {
    return request({
        url: '/app-system/volunteerApply/wxApi/getVolunteerInfo',
        method: 'post',
        data
    })
}

export function registerToVolunteer(data) {
    return request({
        url: '/app-system/volunteerApply/wxApi/registerToVolunteer',
        method: 'post',
        params: {},
        data
    })
}

export function updateVolunteerInfo(data) {
    return request({
        url: '/app-system/volunteerApply',
        method: 'put',
        params: {},
        data
    })
}


export function test() {
    return request({
        url: '/collage/test',
        method: 'get',
        params: {},
        data
    })
}



